-- GENERATED SPELL FOR [Mragesh] --


function spell0_18286(pUnit, Event) --@Chilled Blood,n/a--
pUnit:FullCastSpellOnTarget(35317,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18286', 20284, 1)
end

function spell1_18286(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(35316,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18286', 7000, 1)
end

function Sorts_18286(pUnit, Event)
local choix_sorts_18286 = math.random(0, 1)
if choix_sorts_18286 == 0 then
pUnit:RegisterEvent('spell0_18286', 1, 1)
end
if choix_sorts_18286 == 1 then
pUnit:RegisterEvent('spell1_18286', 1, 1)
end
end

function mob18286_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18286', math.random(1500, 3000), 1)
end

function mob18286_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18286_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18286_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18286, 1, 'mob18286_Action')
RegisterUnitEvent(18286, 2, 'mob18286_Leave')
RegisterUnitEvent(18286, 3, 'mob18286_Kill')
RegisterUnitEvent(18286, 4, 'mob18286_Die')
